package com.springapp.mvc.dao.mapper;

import com.springapp.mvc.dao.bean.Location;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by qinyy on 2018/9/24.
 */
public interface EXLocationMapper extends LocationMapper
{
    /**
     *  ��ҳ��ѯ
     * @param limit ��ѯ����
     * @param offset ��ʼ�±�
     * @param sortPro ��������
     * @param sortType  ����or����
     * @return
     */
    List<Location> querylocationPaged(@Param("limit")int limit,@Param("offset")int offset,@Param("sortPro")String sortPro,@Param("sortType")String sortType);
    // 获取地址总数
    int getTotalNum();

    // 在插入一条新的地址后，返回其自增的主键
    long insertSelectKey(Location record);
}
